package cn.com.surker.erp.entity.sale;

import cn.com.surker.erp.entity.production.ErpInvoice;
import cn.com.surker.util.MathUtils;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.math.BigDecimal;

/**
 * erp的生产产值
 *
 * @author luotao
 * @date 2024/5/15
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class ErpProDayValue extends ErpInvoice {

	/**
	 * 销售人员
	 */
	private String salesman;

	/**
	 * 砼单价
	 */
	private Double levelPrice;

	/**
	 * 特性要求价格
	 */
	private Double techPrice;

	/**
	 * 泵送单价
	 */
	private Double pumpPrice;

	/**
	 * 砼总价
	 * 统计日报没有用到,用于计算量差
	 */
	private Double totalLevelPrice;

	/**
	 * 泵松总价
	 * 统计日报没有用到,用于计算量差
	 */
	private Double totalPumpPrice;

	/**
	 * 结算时间点类型,0为公司默认的08:30:00;1为客户的结算时间
	 */
	private Integer billTimeType;


	public Double getLevelPrice() {
		levelPrice = MathUtils.add(levelPrice, techPrice);
		return levelPrice;
	}

	public Double getPumpPrice() {
		if (pumpPrice == null) {
			return 0d;
		}
		return pumpPrice;
	}

	/*public Double getTotalLevelPrice() {
		//	获取砼单价
		Double levelPrice = getLevelPrice();
		totalLevelPrice = MathUtils.multiply(levelPrice, getVerifyStere());
		return totalLevelPrice;
	}

	public Double getTotalPumpPrice() {
		//	获取泵送单价
		Double pumpPrice = getPumpPrice();
		totalPumpPrice = MathUtils.multiply(pumpPrice, getVerifyStere());
		return totalPumpPrice;
	}*/
}
